<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<div style="margin-top: 70px;">	
	<c:choose>	
	<c:when test="${articulos!=null}">
	
	<table cellspacing="0" cellpadding="0" style="width: 100%">
		<thead>
			<tr>
				<th>Categoria</th>
				<th>Marca</th>
				<th>Nombre</th>
				<th>Precio</th>
				<th>Imagen</th>
				<th style="width: 120px;">Cantidad</th>
				<!-- <th>Detalle</th> -->
			</tr>
		</thead>
	
		<tbody>
		
		<c:forEach items="${articulos}" var="item">					
			<tr>
				<td>${item.categoria}</td>
				<td>${item.marca}</td>
				<td>${item.nombre}</td>
				<td>${item.precio}</td>
				<td><img class="fotoArticulo" src=${item.foto}></td>
				<td>
					<input type="number" class="cantidadArticulos" value="1"  idArticulo="${item.idProducto}">
					<input type="button" class="botonAgregarCarrito" idArticulo="${item.idProducto}">
				</td>
			</tr>				
		</c:forEach>
		</tbody>
		<!-- Table Body -->
	</table>
	</c:when>	
	<c:otherwise>
    	No hay Articulos
	</c:otherwise>
</c:choose>
</div>